Skip to main content

[Symbol.asyncDispose]

method Socket.prototype.[Symbol.asyncDispose]
Jump to headingSocket.prototype.[Symbol.asyncDispose](): Promise<void>

Calls socket.close() and returns a promise that fulfills when the socket has closed.

Return Type Jump to heading

Promise<void>
Back to top